export const less = <T>(param1: T, param2: T): boolean => {
  return param1 < param2;
};

export const lessEqual = <T>(param1: T, param2: T): boolean => {
  return param1 <= param2;
};

export const greater = <T>(param1: T, param2: T): boolean => {
  return param1 > param2;
};

export const greaterEqual = <T>(param1: T, param2: T): boolean => {
  return param1 >= param2;
};

export const compare = <T>(
  comparator: (param1: T, param2: T) => boolean,
  target: T
): ((parameter: T) => boolean) => {
  return (parameter: T): boolean => {
    return comparator(parameter as T, target);
  };
};
